/*
 * TravelSpeed.java
 * Team qq 2011
 */
package com.google.code.timetrail.backend;

public enum TravelSpeed {
	STOPPED(0 , "Stopped"), 
	LUDICROUS(15, "Ludicrous"),
	WARP(10, "Warp"), 
	MACH(5, "Mach");
	
	/** The speed you travel at per turn*/
	private int perTurnDistance;
	
	/** The name of the pace*/
	private String name;
	
	/**
	 * Sets up an enumerated travel speed
	 * @param perTurnDistance The amount of space units per turn traveled
	 * @param name The name of the travel speed
	 */
	TravelSpeed(int perTurnDistance, String name){
		this.perTurnDistance = perTurnDistance;
		this.name = name;
	}
	
	/**
	 * Gets the perTurnDistance of the pace
	 * @return The amount of time units traveled per turn
	 */
	public int getPerTurnDistance(){
		return perTurnDistance;
	}
	
	/**
	 * Gets the name of the pace
	 * @return what the pace is called 
	 */
	public String getName(){
		return name;
	}
}
